<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>03浮动布局</title>
    <style>
        .d{
            background-color: yellow;
            overflow: hidden;
        }
        .d>div{
            width: 100px;
            height: 100px;
            border: 3px solid red;
        }
        .d1{
            background-color: #f00;
            float: left;
        }
        .d2{
            background-color: #0f0;
            float: right;
        }
        .d3{
            background-color: #00f;
            float: left;
        }
    </style>
</head>
<body>
<div class="d">
    <div class="d1"></div>
    <div class="d2"></div>
    <div class="d3"></div>
</div>
<hr>
<ul>
    <li><a href="#">首页</a></li>
    <li><a href="#">免费课</a></li>
    <li><a href="#">Java猎才</a></li>
    <li><a href="#">Java运维</a></li>
</ul>
</body>
</html>